<%#= f.select :category_id, Category.all.map{ |c| [c.name, c.id] } %>
<%#= f.select :category_id, category_options  %>

<%= simple_form_for(@event) do |f| %>
    <%= f.input :name, :label => "Event Name" %>
    <%= f.input :description, :as => :text, :label => "Description" %>
    <%= f.association :groups, :as => :check_boxes, :label => "Groups" %>
    <%= f.submit %>
<% end %>

<%= f.fields_for :location do |location_form| %>
<p>
<%= location_form.label :name, "Location Name" %>
<%= location_form.text_field :name %>

<% unless location_form.object.new_record? %>
    <%= location_form.label :_destroy, 'Remove:' %>
    <%= location_form.check_box :_destroy %>
<% end %>
</p>
<% end %>
